<?php
require_once("main.interface.php");
class Hosting 
{
    public function check($url, $except_result)
    {
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 6.1; pl; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)');
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt ($ch, CURLOPT_GET, 1);
        curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
        $result = curl_exec ($ch);
		if ( ((strpos($result,$except_result)) !== false) )
		{
			return 1;
		}
		else
		{
			return 0;
		}
    }
}
?>